package com.dzh.controller;
import com.dzh.pojo.Articles;
import com.dzh.pojo.Books;
import com.dzh.service.ArticleService;
import com.dzh.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import java.util.List;

@Controller
@RequestMapping("/articles")
public class ArticleController{
    @Autowired
    @Qualifier("ArticleServiceImpl")
    private ArticleService articleService;
    @RequestMapping("/allArticles")
    public String list(){
        List<Articles> list=articleService.queryAllArticle();
        return "allArticle";
    }

   // @RequestMapping("/addArticle")
   /* public String addArticle(){

    }*/
}
